package engine.event
{
	import adobe.utils.CustomActions;
	
	import flash.events.Event;
	
	/**
	 *	自定义事件 
	 * @author lw
	 * 
	 */
	public class CustomEvent extends Event
	{
		/**
		 *	添加npc 
		 */		
		public static const ADD_NPC : String = "add_npc_over";
		
		/**
		 *	切场景 
		 */		
		public static const SWITCH_SCENE 	: String = "switch_scene";
		
		public static const ATTACK_STATUS	: String = "attack_status";
		
		public var  data : Array;
		public function CustomEvent(type:String, pData : Array, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			data = pData;
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			// TODO Auto Generated method stub
			return new CustomEvent( type, data );
		}
		
		override public function toString():String
		{
			// TODO Auto Generated method stub
			return super.toString();
		}
		
	}
}